use std::collections::HashMap;
use tauri::Emitter;

pub fn data_task(value: HashMap<String, String>, app_handle: tauri::AppHandle) {
    println!("Server: Received Data message: {:?}", value);
    println!("Server: Executing Data Task with value: {:?}...", value);
    app_handle
        .emit("data-task-message", value)
        .expect("Failed to emit to frontend")
}
